package com.eternal.base.concat;

import android.bluetooth.BluetoothGatt;

import com.clj.fastble.data.BleDevice;
import com.eternal.base.global.BluetoothKey;

/**
 * Created by Administrator
 * On 2020/4/26
 * Description:
 * @author Administrator
 */
public class BluetoothEvent {
    public static final byte DISCONNECT=0;                                              //断开连接
    public static final byte REFRESH_BADGE =1;                                          //用于log页面角标显示判断
    public static final byte CONNECT=2;
    public static final byte STATE_OFF =3;
    public static final byte STATE_ON =4;

    public final byte what;
    public final int i1;
    public final Object obj;

    public BluetoothEvent(byte what, Object obj, int i1) {
        this.what = what;
        this.obj=obj;
        this.i1=i1;
    }

    public BluetoothEvent(byte what, String mac){
        this(what, mac, 0);
    }

    public BluetoothEvent(byte what, int i1) {
        this(what, null, i1);
    }
}
